﻿using System.ComponentModel;
using System.Windows;

namespace DenisVuyka.Controls.PropertyGrid
{
  public sealed class FontStretchConverterDecorator : FontConverterDecorator
  {
    public FontStretchConverterDecorator() : base(new FontStretchConverter()) { }

    public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
    {
      return new TypeConverter.StandardValuesCollection(
        new FontStretch[] 
        { 
          FontStretches.Condensed, 
          FontStretches.Expanded, 
          FontStretches.ExtraCondensed, 
          FontStretches.ExtraExpanded, 
          FontStretches.Normal, 
          FontStretches.SemiCondensed, 
          FontStretches.SemiExpanded, 
          FontStretches.UltraCondensed, 
          FontStretches.UltraExpanded 
        });
    }
  }
}
